package com.anyisn.anyflickr.shell.controller
{
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import com.anyisn.anyflickr.shell.model.PhotoProxy;

	public class PhotoDownloadCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void {
			var photoP:PhotoProxy = facade.retrieveProxy(PhotoProxy.NAME) as PhotoProxy;
			var url:String = notification.getBody() as String;
			photoP.download(url);
		}
	}
}